#ifndef _DPARSABLE_H
#define _DPARSABLE_H

//==============================================================================
//
// DParsable - the protocol for classes that can parse a c-string for contents
//
//               Copyright (C) 2002  Dick van Oudheusden
//  
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free
// Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
//==============================================================================
// 
//  $Date: 2003-10-07 18:04:07 $ $Revision: 1.1 $
//
//==============================================================================

#include <errno.h>

// The DParsable protocol defines methods for classes that can parse a c-string
// to set the internal state of the object.

@protocol DParsable

//
// Parse a string to set an object
//
// @param cstr     the string to be parsed (moved to first non-parsable char)
// 
// @return the result (0, ERANGE, ENODATA)
//

- (int) fromString :(char **) cstr;

@end

#endif

